<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Basic Struts 2 Application - Welcome</title>
<s:head/>
</head>
<body>
	<h1>Welcome to Struts 2!</h1>
	<hr>
	
	<p><a href="<s:url action='hello/hello'/>">Hello World</a></p>
	
	<s:url action="hello/hello" var="helloLink">
		<s:param name="userName">Bruce Phillips</s:param>
	</s:url>
	<p><a href="${helloLink}">Hello Bruce</a></p>
	
	<p>Get your own personal hello by filling out and submitting this form.</p>
	<s:form action="hello/hello">
		<s:textfield name="userName" label="Your name" />
		<s:submit value="Submit" />
	</s:form>
	<hr>
	
	<p><a href="<s:url action='person/register-input' />">Please register</a> for our prize drawing.</p>
	<h3>Registro español</h3>
	<s:url action="register-input" var="registerInputLinkES">
		<s:param name="request_locale">es</s:param>
	</s:url>
	<p><a href="${registerInputLinkES}">Por favor, regístrese</a> para nuestro sorteo</p>
	<hr>
	
	<p><a href="<s:url action='index' namespace='config-browser' />">Launch the configuration browser</a></p>
	<p>
		<s:url action='index' var="indexDebugLink">
			<s:param name="debug">browser</s:param>
		</s:url>
		<a href="${indexDebugLink}">Launch the Debugging Interceptor</a>
	</p>
	<hr>
	
	<p><a href="<s:url action='person/edit-input' />">Edit your information</a></p>
	<p><a href="<s:url action='person/person-list' />">See Person List</a></p>
	
	<s:text name="contact" />
</body>
</html>